import request from '@/util/request'
const api_url = `/api/user/patient`

export default {
  // 获取就诊人列表
  findList(){
    return request({
      url:`${api_url}/auth/findAll`,
      method: 'get'
    })
  },
  // 根据id查询就诊人信息
  getById(id){
    return request({
      url:`${api_url}/auth/get/${id}`,
      method: 'get'
    })
  },
  //添加就诊人信息
  save(patient){
    return request({
      url:`${api_url}/auth/save`,
      method: 'post',
      data: patient
    })
  },
  // 修改就诊人信息
  updateById(patient){
    return request({
      url:`${api_url}/auth/update`,
      method: 'post',
      data: patient
    })
  },
  // 删除就诊人信息
  removeById(id){
    return request({
      url:`${api_url}/auth/remove/${id}`,
      method: 'delete'
    })
  },
}
